package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;

// SQL Timestamp类型适配器
public class SqlTimestampParameterAdapter implements ParameterAdapter<Timestamp> {

    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, Timestamp data) throws SQLException {
        ps.setTimestamp(index, data);
    }
}
